package cn.kkcxy.blog.core.convert;

import cn.kkcxy.blog.core.entity.sys.SysUser;
import cn.kkcxy.blog.core.vo.admin.SimpleInfoVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface AdministratorInfoConverter {

    /**
     * 得到自身实例
     */
    AdministratorInfoConverter INSTANCE = Mappers.getMapper(AdministratorInfoConverter.class);

    /**
     * 将管理员账户信息进行转换
     */
    SimpleInfoVO convertAdministratorInfoTOSimpleInfo(SysUser user);
}
